package com.woniu.controller.backpage;

import com.woniu.service.backpage.IOrdersDetailsService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单明细表controller层
 * @author 任楷锐
 * @data 2023/3/7 17:53
 */
@RestController
@RequestMapping("/ordersDetails")
public class OrdersDetailsController {
    @Autowired
    private IOrdersDetailsService ordersDetailsService;


    /*查询所有的订单明细*/
    @RequestMapping("/getAllOrdersDetails")
    public ResData<?> getAllOrdersDetails(String ordersId){
        ResData<?> allOrdersDetails = ordersDetailsService.getAllOrdersDetails(ordersId);
        return allOrdersDetails;
    }
}
